<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
    <meta charset="UTF-8"/>
    <title>
        A date range picker for Bootstrap
    </title>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.css" rel="stylesheet">
    <link href="http://www.jq22.com/jquery/font-awesome.4.6.0.css"
          rel="stylesheet">
    <link rel="stylesheet" type="text/css" media="all" href="daterangepicker-bs3.css"
    />
    <script type="text/javascript" src="jquery.min.js">
    </script>
    <script type="text/javascript" src="bootstrap.min.js">
    </script>
    <script type="text/javascript" src="moment.js">
    </script>
    <script type="text/javascript" src="daterangepicker.js">
    </script>
    <style>
        .form-control:hover {
            cursor: pointer;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="span12">

        <h1>Usage Examples</h1>

        <hr/>

        <h4>请选择日期</h4>
        <div class="well">

            <form class="form-horizontal">
                <fieldset>
                    <div class="control-group">
                        <div class="controls">
                            <div class="input-prepend input-group">
                                <span class="add-on input-group-addon"><i
                                        class="glyphicon glyphicon-calendar fa fa-calendar"></i></span><input
                                    type="text" readonly style="width: 200px" name="reservation" id="reservation"
                                    class="form-control" value="2017-08-01 - 2017-09-01"/>
                            </div>
                        </div>
                    </div>

                </fieldset>
                <input type="submit" value="提交" class="btn btn-primary ">


            </form>

            <script type="text/javascript">
                $(document).ready(function () {
                    $('#reservation').daterangepicker(null, function (start, end, label) {
                        console.log(start.toISOString(), end.toISOString(), label);
                    });
                });
            </script>

        </div>


    </div>
</div>


</body>
</html>